package com.accp.controller;

import com.accp.dao.ChDao;
import com.accp.dao.UserDao;
import com.accp.entity.Ch;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexCtr {

    @Autowired
    UserDao userDao;
    @Autowired
    ChDao chDao;

    @GetMapping("index")
    public Ch index(){

        return chDao.queryByKey(1);
    }
}
